$(() => {
    $('#login_form').on('submit', (e) => {
        e.preventDefault()
        let val = $('#login_form').serialize()
        $.ajax({
            type: 'post',
            url: 'http://localhost:8080/api/v1/admin/user/login',
            data: val,
            success: (res) => {
                console.log(res);
                localStorage.setItem('dsj_token', res.token)
                location.href = 'index.html'
            }
        })
    })
})